package cn.flexui.flexuiserver.service.impl;

import cn.flexui.flexuiserver.domain.entity.MemberRights;
import cn.flexui.flexuiserver.mapper.MemberRightsMapper;
import cn.flexui.flexuiserver.service.MemberRightsService;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 会员权益 服务实现类
 * </p>
 *
 * @author apeto
 * @since 2024-09-22 10:50:52
 */
@Service
public class MemberRightsServiceImpl extends ServiceImpl<MemberRightsMapper, MemberRights> implements MemberRightsService {

    @Override
    public List<MemberRights> getByMemberCode(Long id) {
        return list(new LambdaQueryWrapper<MemberRights>().eq(MemberRights::getMemberCardId, id));
    }
}
